import upload from '@/utils/upload'
import request from '@/utils/request'





// 获取医学趣闻
export function getFunById(id) {
	const routeUrl = '/system/fun/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取最新医学趣闻
export function getFunNew() {
	const routeUrl = '/system/fun/new' 
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取医学趣闻的上条信息
export function getFunPreById(id) {
	const routeUrl = '/system/fun/prev/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取医学趣闻的下条信息
export function getFunNextById(id) {
	const routeUrl = '/system/fun/next/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 查询科普列表
export function listFun(query) {
	return request({
		url: '/system/fun/list',
		method: 'get',
		params: query
	})
}




